package com.example.books.Service.Impl;

import com.example.books.Dao.InformationDao;
import com.example.books.Pojo.InformationDO;
import com.example.books.Service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class InformationServiceImpl implements InformationService {

    @Autowired
    private InformationDao informationDao;

    @Override
    public List<InformationDO> getInformation() {
        return informationDao.getInformation();
    }

    @Override
    public boolean setInformation(Map<String, Object> map) {
        return informationDao.setInformation(map);
    }

    @Override
    public boolean updateInformation(Map<String, Object> map) {
        return informationDao.updateInformation(map);
    }

    @Override
    public boolean deleteInformation(Map<String, Object> map) {
        return informationDao.deleteInformation(map);
    }
}
